package com.sufun.activities;

import android.util.Log;
import android.view.View;
import android.view.inputmethod.InputMethodManager;

import com.ab.activity.AbActivity;
/**
 * 基类的Activity
 * @author Wu
 *
 */
public class SFBaseAct extends AbActivity {


	/**
	 * 是否开启调式模式
	 */
	public boolean D=true;
	/**
	 * 调试标签
	 */
	public String Tag=this.getClass().getName();
	/**
	 * 调试方法
	 * @param log
	 */
	public void D(String log)
	{
		if(D)
		{
			Log.i(Tag, log);
		}
	}
	/**
	 * 关闭软件键盘
	 */
	public void doHideSoftkey() {
		View view = this.getWindow().peekDecorView();
		if (view != null) {
			InputMethodManager inputmanger = (InputMethodManager) this.getSystemService(this.INPUT_METHOD_SERVICE);
			inputmanger.hideSoftInputFromWindow(view.getWindowToken(), 0);
		}
	}
}
